//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================
#ifndef PKT_FILE_CHUNK_H
#define PKT_FILE_CHUNK_H

#include "PktDefs.h"

#pragma pack(push) 
#pragma pack(1)
class PktFileChunk : public VxPktHdr
{
public:
    unsigned short	u16Res;			// reserved to round to 16 bytes
    unsigned long	u32ChkSum;		// check sum of this chunk
    unsigned long	u32ChunkLen;	// length of file data chunk in this packet
    unsigned char	au8FileChunk[ MAX_FILE_CHUNK_LEN ];

    PktFileChunk();

    void CalcPktLen( int iChunkLen );

};
#pragma pack(pop)

#endif //#ifndef PKT_1ARG_REQ_H


